//
//  NSData+CRC32.m
//  AutoCompilerManager
//
//  Created by Vescky on 14/12/5.
//  Copyright (c) 2014年 Vescky. All rights reserved.
//

#import "NSData+CRC32.h"


@implementation NSData (CRC32)

- (uLong)CRC32Value {
    uLong crc = crc32(0L, Z_NULL, 0);
    crc = crc32(crc, [self bytes], (UInt)[self length]);
    return crc;
}

@end
